<style>
    .table_fields .input_tag {
        margin-bottom: 5px;
        display: inline-flex;
    }
</style>
<div class="layuimini-container">
    <div class="layuimini-main">

        <div class="layui-tab" lay-filter="curd-hash">
            <ul class="layui-tab-title">
                <li class="layui-this" lay-id="1">视图生成</li>
                <li lay-id="2">命令生成</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">

                        <form id="app-form" class="layui-form layuimini-form">

                            <div class="layui-form-item">
                                <label class="layui-form-label">数据库表前缀</label>
                                <div class="layui-input-block">
                                    <input type="text" name="tb_prefix" class="layui-input" placeholder="请输入" value="{:env('DB_PREFIX','')}">
                                    <tip>可为空，为空则不带前缀</tip>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">数据库表名字</label>
                                <div class="layui-input-block">
                                    <input type="text" name="tb_name" class="layui-input" lay-verify="required" placeholder="请输入:例如 test_goods" value="">
                                    <tip>数据库表名字 不包含数据库表前缀。</tip>
                                </div>
                            </div>

                            <div class="hr-line"></div>
                            <div class="layui-form-item text-center">
                                <button type="button" class="layui-btn layui-btn-normal layui-btn-sm" lay-filter="search" lay-submit="system.CurdGenerate/save?type=search" data-refresh="false">查询</button>
                            </div>

                        </form>

                    </div>

                    <div class="tableShow layui-hide">
                        <blockquote class="layui-elem-quote layui-quote-nm">
                            数据表：<span class="table-text"></span>
                        </blockquote>
                        <div class="layui-card-body">
                            <fieldset class="layui-elem-field">
                                <legend class="layui-font-16">设置忽略字段</legend>
                                <div class="layui-field-box">
                                    <div class="table_fields layui-form" data-name="ignore"></div>
                                </div>
                            </fieldset>
                            <fieldset class="layui-elem-field">
                                <legend class="layui-font-16">设置下拉字段</legend>
                                <div class="layui-field-box">
                                    <div class="table_fields layui-form" data-name="select"></div>
                                </div>
                            </fieldset>
                            <fieldset class="layui-elem-field">
                                <legend class="layui-font-16">设置单选字段</legend>
                                <div class="layui-field-box">
                                    <div class="table_fields layui-form" data-name="radio"></div>
                                </div>
                            </fieldset>
                            <fieldset class="layui-elem-field">
                                <legend class="layui-font-16">设置多选字段</legend>
                                <div class="layui-field-box">
                                    <div class="table_fields layui-form" data-name="checkbox"></div>
                                </div>
                            </fieldset>
                            <fieldset class="layui-elem-field">
                                <legend class="layui-font-16">设置单选图片字段</legend>
                                <div class="layui-field-box">
                                    <div class="table_fields layui-form" data-name="image"></div>
                                </div>
                            </fieldset>
                            <fieldset class="layui-elem-field">
                                <legend class="layui-font-16">设置多选图片字段</legend>
                                <div class="layui-field-box">
                                    <div class="table_fields layui-form" data-name="images"></div>
                                </div>
                            </fieldset>
                            <fieldset class="layui-elem-field">
                                <legend class="layui-font-16">设置日期（Y-m-d）字段</legend>
                                <div class="layui-field-box">
                                    <div class="table_fields layui-form" data-name="date"></div>
                                </div>
                            </fieldset>
                            <fieldset class="layui-elem-field">
                                <legend class="layui-font-16">设置日期时间（Y-m-d H:i:s）字段</legend>
                                <div class="layui-field-box">
                                    <div class="table_fields layui-form" data-name="datetime"></div>
                                </div>
                            </fieldset>
                            <fieldset class="layui-elem-field">
                                <legend class="layui-font-16">设置编辑器字段</legend>
                                <div class="layui-field-box">
                                    <div class="table_fields layui-form" data-name="editor"></div>
                                </div>
                            </fieldset>
                        </div>
                        <div class="layui-btn-container">
                            <form class="layui-form layuimini-form">
                                <button type="button" class="layui-btn layui-bg-cyan" lay-filter="add" lay-submit="system.CurdGenerate/save?type=add">自动生成CURD</button>
                                <button type="button" class="layui-btn layui-bg-red" lay-filter="delete" lay-submit="system.CurdGenerate/save?type=delete">删除CURD对应的文件</button>
                            </form>
                            <div class="file-list layui-elem-quote">还未生成任何文件</div>
                        </div>
                        <table id="currentTable" class="layui-table" lay-filter="currentTable"></table>
                    </div>
                </div>
                <div class="layui-tab-item"></div>
            </div>
        </div>
    </div>
</div>